package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-31
 * Time: 10:14
 */
public class Test {
    public static void main(String[] args) {
//        String string = "hello";
//        StringBuffer stringBuffer = new StringBuffer("hello");
//        String str = new String("123");
//        str = "456";
        String str1 = new String("hi");
        String str2 = new String("hii");
        System.out.println(((str1 == str2) ? true : false));
    }
}
